/* data structure for grid mapping */
#define GRIDMAX_X 50
#define GRIDMAX_Y 50
#define GRIDMAX_Z 50
#define GRID_SIZE 1.0

#define MAX_GRID_LINE 25 * GRIDMAX_X * GRIDMAX_Y * GRIDMAX_Z
#define MAX_GRID2_LINE 50 * ATOMNUM

struct grid {
	int grid1D[MAX_GRID_LINE];
	struct cell {
		int number;
		int *p;
	} cell[GRIDMAX_X][GRIDMAX_Y][GRIDMAX_Z];
	float center[3];
} grid;

struct grid2 {
	int grid1D[MAX_GRID2_LINE];
	struct cell2 {
		int number, flag;
		int *p;
	} cell2[GRIDMAX_X][GRIDMAX_Y][GRIDMAX_Z];
	float center[3];
} grid2;
